<?php include "header.html"; ?>

<div id="main">
<?php if($ts == 'list'){ ?>
<h3>微博管理</h3>
<table>
<tr>
<td width="20">ID</td><td width="400">内容</td><td>管理</td>
</tr>
<?php foreach($mlogs as $key=>$mlog){ ?>
<tr  class='odd'>
<td><?php echo $mlog['id']; ?></td><td><?php echo $mlog['content']; ?></td><td class='action'><a href="../reply.php?id=<?php echo $mlog['id']; ?>"  target="_blank" class='view'>查看</a><a href="index.php?action=mlog&ts=edit&id=<?php echo $mlog['id']; ?>" class='edit'>编辑</a><a href="index.php?action=mlog&ts=del&id=<?php echo $mlog['id']; ?>">删除</a></td>
</tr>
<?php } ?>
</table>
<div class="manu">
<?php echo $page_url; ?>
</div>
<?php } ?>


<?php if($ts == 'edit'){ ?>
<h3>编辑微博</h3>
<fieldset>
<form method="POST"  class="jNice" action="index.php?action=mlog&ts=update&id=<?php echo $_GET['id']; ?>">
<p><label>微博内容：</label><textarea name="content" style="width:600px;height:50px;"><?php echo $logDate['content']; ?></textarea></p>
<input type="submit" value="更新微博" name="" />
</form>
</fieldset>
<?php } ?>


</div>

<?php include "footer.html"; ?>